package com.haoze.nurseapp.controller;

import com.haoze.nurseapp.service.AppDownloadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.*;

@RestController
@RequestMapping("/nurseapp/download")
@Api("app下载")
public class AppDownloadController {

    @Resource
    AppDownloadService appDownloadService;

    @GetMapping("/zhhl")
    @ApiOperation("获取本病区未处理收药记录")
    @ResponseBody
    public void downloadApp(HttpServletResponse response){
        appDownloadService.downloadApp(response);
    }

}
